package com.spring.app.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name ="BUYER")
//@JsonIgnoreProperties(ignoreUnknown=true)
public class BuyerData implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6835314253016029295L;
	
	@Id
	@Column(name="BUYED_ID")
	@GeneratedValue(strategy=GenerationType.IDENTITY)	
	private String buyerId;
	
	@Column(name="USER_ID")
	 private String userId;
	@Column(name="BUYER_FULLNAME")
    private String fullName;
	@Column(name="BUYER_PHONE_NUMBER")
    private String phoneNo;
	@Column(name="BUYER_EMAIL")
    private String email;
	@Column(name="BUYER_ADDRESS_1")
    private String address1;
	@Column(name="BUYER_ADDRESS_2")
    private String address2;
	@Column(name="BUYER_CITY")
    private String city;
	@Column(name="BUYER_STATE")
    private String state;
	@Column(name="BUYER_POSTCODE")
    private String postcode;
	@Column(name="BUYER_COUNTRY")
    private String country;
	@Column(name="ID_TRANSACTIONFILE")
	private Long idTransactionFile;
	@Transient
	private String salesRecord;
/*	@Column(name="TRANSACTION_ID")
    private String transactionId;
	@Column(name="ITEM_TITLE")
    private String itemTitle;
	@Column(name="QUANTITY")
    private String quantity;
	@Column(name="SALE_PRICE")
    private String salePrice;
    @Column(name="POSTAGE")
    private String postage;
    @Column(name="TOTAL_PRICE")
    private String totalPrice;
    @Column(name="SALE_DATE")
    private String saleDate;
    @Column(name="CHECKOUT_DATE")
    private String checkOutDate;
    @Column(name="PAID_DATE")
    private String paidDate;
    @Column(name="MARGIN")
    private String margin;
    //extra fields 
    @Column(name="ITEM_CODE")
    private String itemCode;
*/	
	
    
	public String getBuyerId() {
		return buyerId;
	}
	public void setBuyerId(String buyerId) {
		this.buyerId = buyerId;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getFullName() {
		return fullName;
	}
	public void setFullName(String fullName) {
		this.fullName = fullName;
	}
	public String getPhoneNo() {
		return phoneNo;
	}
	public void setPhoneNo(String phoneNo) {
		this.phoneNo = phoneNo;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getAddress1() {
		return address1;
	}
	public void setAddress1(String address1) {
		this.address1 = address1;
	}
	public String getAddress2() {
		return address2;
	}
	public void setAddress2(String address2) {
		this.address2 = address2;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getPostcode() {
		return postcode;
	}
	public void setPostcode(String postcode) {
		this.postcode = postcode;
	}
	public String getCountry() {
		return country;
	}
	public void setCountry(String country) {
		this.country = country;
	}
	public String getSalesRecord() {
		return salesRecord;
	}
	public void setSalesRecord(String salesRecord) {
		this.salesRecord = salesRecord;
	}
	public Long getIdTransactionFile() {
		return idTransactionFile;
	}
	public void setIdTransactionFile(Long idTransactionFile) {
		this.idTransactionFile = idTransactionFile;
	}
	
	
	/*public String getTransactionId() {
		return transactionId;
	}
	public void setTransactionId(String transactionId) {
		this.transactionId = transactionId;
	}
	public String getItemTitle() {
		return itemTitle;
	}
	public void setItemTitle(String itemTitle) {
		this.itemTitle = itemTitle;
	}
	public String getQuantity() {
		return quantity;
	}
	public void setQuantity(String quantity) {
		this.quantity = quantity;
	}
	public String getSalePrice() {
		return salePrice;
	}
	public void setSalePrice(String salePrice) {
		this.salePrice = salePrice;
	}
	public String getPostage() {
		return postage;
	}
	public void setPostage(String postage) {
		this.postage = postage;
	}
	public String getTotalPrice() {
		return totalPrice;
	}
	public void setTotalPrice(String totalPrice) {
		this.totalPrice = totalPrice;
	}
	public String getSaleDate() {
		return saleDate;
	}
	public void setSaleDate(String saleDate) {
		this.saleDate = saleDate;
	}
	public String getCheckOutDate() {
		return checkOutDate;
	}
	public void setCheckOutDate(String checkOutDate) {
		this.checkOutDate = checkOutDate;
	}
	public String getPaidDate() {
		return paidDate;
	}
	public void setPaidDate(String paidDate) {
		this.paidDate = paidDate;
	}
	public String getMargin() {
		return margin;
	}
	public void setMargin(String margin) {
		this.margin = margin;
	}
	public String getItemCode() {
		return itemCode;
	}
	public void setItemCode(String itemCode) {
		this.itemCode = itemCode;
	}
*/	
}
